//
//  PayButton.h
//  WashCar
//
//  Created by 张越 on 16/3/10.
//  Copyright © 2016年 张越. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol PayButtonDelegate;

@interface PayButton : UIButton{
    NSString                        *_groupId;
    BOOL                            _checked;
    id<PayButtonDelegate>       _delegate;
}

@property(nonatomic, strong)id<PayButtonDelegate>   delegate;
@property(nonatomic, copy, readonly)NSString            *groupId;
@property(nonatomic, assign)BOOL checked;

- (id)initWithDelegate:(id)delegate groupId:(NSString*)groupId;

@end

@protocol PayButtonDelegate <NSObject>

@optional

- (void)didSelectedRadioButton:(PayButton *)radio groupId:(NSString *)groupId;

@end